package com.example.demo528.controller;

import com.example.demo528.domain.Student;
import com.example.demo528.service.StudentService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class StudentController {
    @Resource
    private StudentService studentService;

    @RequestMapping("/student/list")
    public List<Student> list(){
        return studentService.list();
    }
}
